package com.dy.system.service;

import com.dy.system.domain.MedicalEquipmentReportLog;

import java.util.List;

/**
 * 设备上报日志Service接口
 *
 * @author ruoyi
 * @date 2022-08-15
 */
public interface IMedicalEquipmentReportLogService {
    /**
     * 查询设备上报日志
     *
     * @param id 设备上报日志主键
     * @return 设备上报日志
     */
    public MedicalEquipmentReportLog selectMedicalEquipmentReportLogById(Long id);

    /**
     * 查询设备上报日志列表
     *
     * @param medicalEquipmentReportLog 设备上报日志
     * @return 设备上报日志集合
     */
    public List<MedicalEquipmentReportLog> selectMedicalEquipmentReportLogList(MedicalEquipmentReportLog medicalEquipmentReportLog);

    /**
     * 新增设备上报日志
     *
     * @param medicalEquipmentReportLog 设备上报日志
     * @return 结果
     */
    public int insertMedicalEquipmentReportLog(MedicalEquipmentReportLog medicalEquipmentReportLog);

    /**
     * 修改设备上报日志
     *
     * @param medicalEquipmentReportLog 设备上报日志
     * @return 结果
     */
    public int updateMedicalEquipmentReportLog(MedicalEquipmentReportLog medicalEquipmentReportLog);

    /**
     * 批量删除设备上报日志
     *
     * @param ids 需要删除的设备上报日志主键集合
     * @return 结果
     */
    public int deleteMedicalEquipmentReportLogByIds(Long[] ids);

    /**
     * 删除设备上报日志信息
     *
     * @param id 设备上报日志主键
     * @return 结果
     */
    public int deleteMedicalEquipmentReportLogById(Long id);

    List<MedicalEquipmentReportLog> selectAppletMedicalEquipmentReportList(String code);

    int getMedicalHandleData(String handleType,Long medicalId,String code);


    Integer getMedicalHandleDataByInsIdAndTime(Long institutionId, String time);

    Integer getMedicalHandleShengData(String handleType,Long medicalId,String code);

}
